<template>
  <div>
    <el-row :gutter="20">
      <el-col
        :span="6"
        v-for="index in 10"
        :key="index"
        :style="{ marginBottom: '20px' }"
      >
        <el-card class="address-card">
          <el-checkbox-group
            v-model="checkList"
            style="line-height: 70px; margin-right: 15px"
          >
            <el-checkbox label=""></el-checkbox>
          </el-checkbox-group>
          <div class="avatar">
            <img :src="defaultAvatar" class="avatar-img" />
          </div>
          <div class="info">
            <div class="name">陈局长 <span>局长</span></div>
            <div class="contact">
              <span class="mobile">15245628547</span>
              <span class="tel">025-78452236</span>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>
    <el-row :style="{ textAlign: 'center' }">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
      >
      </el-pagination>
    </el-row>
  </div>
</template>

<script>
import defaultAvatar from "@/assets/images/default_avatar.jpeg";
export default {
  name: "selection",
  data() {
    return {
      defaultAvatar: defaultAvatar,
      checkList: ["选中且禁用", "复选框 A"],
      currentPage4: 1,
    };
  },
  methods: {
    handleSizeChange() {},
    handleCurrentChange() {},
  },
};
</script>

<style scoped>
.el-input__inner {
  width: 200px !important;
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
  font-size: 20px;
  line-height: 36px;
  color: #000;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.avatar {
  width: 80px;
  height: 80px;
}

.avatar img {
  width: inherit;
  height: inherit;
}

.info {
  flex: 1;
  display: flex;
  flex-flow: column;
  margin-left: 10px;
}

.name {
  flex: 1;
  font-size: 18px;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
  color: white;
}

.name span {
  font-size: 13px;
  margin-left: 10px;
  color: grey;
}

.contact {
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  color: white;
}
.el-col-6 {
  width: 50%;
}
.address-card /deep/ .el-card__body {
  display: flex;
  flex-flow: row;
}
</style>
